package keeto.com.vn.bms.utils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class ParserDateTime {
	int hour;
	int minute;
	String DDMMYYYY;
	String input; // 2014-07-07 12:20:52

	public ParserDateTime(String input) {
		this.input = input;
	}

	public void parserDateMonthYear() {
		SimpleDateFormat originalFormat = new SimpleDateFormat(input);
		SimpleDateFormat targetFormat = new SimpleDateFormat("DD/MM/YYYY");
		Date date;
		try {
			date = originalFormat.parse("21 6 2013");
			System.out.println("Old Format :   " + originalFormat.format(date));
			System.out.println("New Format :   " + targetFormat.format(date));

		} catch (ParseException ex) {

		}
	}

	public void parserHour() {

	}

	public void parserMinute() {

	}

}
